package com.zoffy.wmsbackend.model.vo;

import com.zoffy.wmsbackend.model.entity.Goods;
import lombok.Data;

@Data
public class GoodsVO {
    private Long id;

    private String goodsName;

    private String goodsCode;

    private String tally;

    private Integer safeStock;

    private Integer amountGd;
    public static GoodsVO obj2VO(Goods goods){
        GoodsVO goodsVO = new GoodsVO();
        goodsVO.setId(goods.getId());
        goodsVO.setGoodsName(goods.getGoodsName());
        goodsVO.setGoodsCode(goods.getGoodsCode());
        goodsVO.setTally(goods.getTally());
        goodsVO.setAmountGd(goods.getAmountGd());
        return goodsVO;
    }
}
